package adapter.m2;

import adapter.m1.LightningTarget;
import adapter.m1.TypeCAdaptee;

public class Adapter implements LightningTarget {

    private TypeCAdaptee typeCAdaptee;

    public Adapter(TypeCAdaptee typeCAdaptee){
        this.typeCAdaptee = typeCAdaptee;
    }

    @Override
    public void chargeIphone() {
        typeCAdaptee.chargeAndroid();
    }
}
